package com.xt.base.util.json;


import com.opensymphony.webwork.dispatcher.json.JSONException;
import com.opensymphony.webwork.dispatcher.json.JSONObject;
import com.opensymphony.webwork.dispatcher.json.JSONResult;
import com.opensymphony.xwork.ActionContext;
import com.opensymphony.xwork.ActionInvocation;

public class JsonArrayResult extends JSONResult {   
	private static final long serialVersionUID = -3560877025224616435L;

	protected JSONObject getJSONObject(ActionInvocation invocation)   
  
           throws JSONException {   
  
       ActionContext actionContext = invocation.getInvocationContext();   
  
       Object obj = actionContext.getValueStack().findValue(   
  
              this.getJSONObjectProperty());   
  
  
    
  
       /*JSONObject jo = new JavaScriptJSONObject();   
  
       jo.put("result", obj);  */ 
  
       return (JSONObject)obj;   
  
    }   
}

